#ifndef LIFECHECKER_H
#define LIFECHECKER_H
#include "LifeBoard.h"


class LifeChecker
{
    public:
        LifeChecker();
        virtual ~LifeChecker();
        bool isAlive(LifeBoard**);
    protected:
    private:
        bool alive;
        int curX;
        int curY;
        LifeBoard** gameBoard;
        bool lifeUpChecker(int, int);
        bool lifeDownChecker(int, int);
        bool lifeRightChecker(int, int);
        bool lifeLeftChecker(int, int);
        bool lifeUpRightChecker(int, int);
        bool lifeUpLeftChecker(int, int);
        bool lifeDownRightChecker(int, int);
        bool lifeDownLeftChecker(int, int);
        void setCurX(int);
        void setCurY(int);
};

#endif // LIFECHECKER_H
